export default class extends Phaser.State{
    constructor () {
        super()
    }
    preload() {
        this.load.image('guide1', 'assets/guide1.png');
        this.load.image('guide2', 'assets/guide2.png');
    }
    init() {
        this.scale.scaleMode = Phaser.ScaleManager.EXACT_FIT;
    }
    create() {
        var guide2 = this.add.image(0, 0,'guide2')
        var guide1 = this.add.image(0, 0,'guide1')
        guide1.scale.set(1.17,1.1)
        guide2.scale.set(1.17,1.1)

        guide1.inputEnabled = true
        guide2.inputEnabled = true

        guide1.events.onInputDown.add( () => {
            guide1.kill()
        }, guide1 )
        guide2.events.onInputDown.add( () => {
            game.state.start( 'play' )
        }, guide1 )
    }
}